package com.dup.jxlh.api.enums;

public enum ResultEnum {
    SUCCESS(0, "success"),

    SERVER_REFUSE(403, "服务器拒绝"),
    REQUEST_NOT_EXIST(404, "请求接口不存在"),
    REQUEST_NOT_SUPPORT(405, "请求方法不支持"),
    REQUEST_NULL_POINTER(416, "请求空异常"),

    ERROR(500, "error"),

    ARGS_ERROR(10000, "参数错误"),

    USER_ENABLE_ERROR(10001, "您的帐户已停用"),
    USER_FOUND_ERROR(10002, "您的用户名不存在"),
    PASSWORD_ERROR(10003, "您的密码不正确"),
    USER_FOUND_EXIST(10004, "您的手机号已存在");
    private Integer code;
    private String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
